package com.yunhe.merchants.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yunhe.common.metadata.BaseExcelModel;
import com.yunhe.common.util.StringUtil;
import com.yunhe.merchants.constant.MyProjectConsts;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Author: DongWenYu
 * @Date: 2021/5/7 13:07
 */
public class SuccessProjectUpload extends BaseExcelModel {

    @ApiModelProperty(value = "历史项目ID")
    @ExcelIgnore
    private Long id;
    @ExcelProperty(value = "企业名称" , index = 0)
    private String companyName;
    @ExcelProperty(value = "联系人" , index = 1)
    private String custName;
    @ExcelProperty(value = "电话" , index = 2)
    private String custTel;
    @ExcelProperty(value = "企业行业" , index = 3)
    private String industryTypeTitle;
    @ExcelProperty(value = "来源" , index = 4)
    private String dataSourceTitle;
    @ExcelProperty(value = "其他备注" , index = 5)
    private String remark;
    @ExcelProperty(value = "选定厂房" , index = 6)
    private String chosenOfficeTitle;
    @ExcelProperty(value = "签约时间" , index = 7)
    private String signTimeStr;
    @ExcelProperty(value = "离场时间" , index = 8)
    private String expireTimeStr;
    @ExcelProperty(value = "负责人" , index = 9)
    private String principalTitle;
    @ExcelProperty(value = "负责人电话" , index = 10)
    private String principalPhone;
    @ExcelProperty(value = "负责部门" , index = 11)
    private String responsibleDeptTitle;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getCustTel() {
        return custTel;
    }

    public void setCustTel(String custTel) {
        this.custTel = custTel;
    }

    public String getIndustryTypeTitle() {
        return industryTypeTitle;
    }

    public void setIndustryTypeTitle(String industryTypeTitle) {
        this.industryTypeTitle = industryTypeTitle;
    }

    public String getDataSourceTitle() {
        return dataSourceTitle;
    }

    public void setDataSourceTitle(String dataSourceTitle) {
        this.dataSourceTitle = dataSourceTitle;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getChosenOfficeTitle() {
        return chosenOfficeTitle;
    }

    public void setChosenOfficeTitle(String chosenOfficeTitle) {
        this.chosenOfficeTitle = chosenOfficeTitle;
    }

    public String getSignTimeStr() {
        return signTimeStr;
    }

    public void setSignTimeStr(String signTimeStr) {
        this.signTimeStr = signTimeStr;
    }

    public String getExpireTimeStr() {
        return expireTimeStr;
    }

    public void setExpireTimeStr(String expireTimeStr) {
        this.expireTimeStr = expireTimeStr;
    }

    public String getPrincipalTitle() {
        return principalTitle;
    }

    public void setPrincipalTitle(String principalTitle) {
        this.principalTitle = principalTitle;
    }

    public String getResponsibleDeptTitle() {
        return responsibleDeptTitle;
    }

    public void setResponsibleDeptTitle(String responsibleDeptTitle) {
        this.responsibleDeptTitle = responsibleDeptTitle;
    }

    public String getPrincipalPhone() {
        return principalPhone;
    }

    public void setPrincipalPhone(String principalPhone) {
        this.principalPhone = principalPhone;
    }

    @Override
    public String toString() {
        return "SuccessProjectUpload{" +
                ", companyName='" + companyName + '\'' +
                ", custName='" + custName + '\'' +
                ", custTel='" + custTel + '\'' +
                ", industryTypeTitle='" + industryTypeTitle + '\'' +
                ", dataSourceTitle='" + dataSourceTitle + '\'' +
                ", remark='" + remark + '\'' +
                ", chosenOfficeTitle='" + chosenOfficeTitle + '\'' +
                ", signTimeStr='" + signTimeStr + '\'' +
                ", expireTimeStr='" + expireTimeStr + '\'' +
                ", principalTitle='" + principalTitle + '\'' +
                ", principalPhone='" + principalPhone + '\'' +
                ", responsibleDeptTitle='" + responsibleDeptTitle + '\'' +
                '}';
    }

    @Override
    public Boolean isEmpty() {
        return super.isEmpty() || StringUtil.isEmpty(this.getCompanyName()) || companyName.equals("企业名称");
    }
}
